package com.ihcil.forecast.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ihcil.forecast.demo.pojo.User;
import com.ihcil.forecast.demo.vo.LoginVo;
import com.ihcil.forecast.demo.vo.RegistVo;
import com.ihcil.forecast.demo.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author @baseException
 * @since 2021-12-26
 */
public interface UserService extends IService<User> {

    public abstract RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

    // 用户注册
    RespBean regist(RegistVo registVo);

    // 根据Cookie获取用户
    User getUserByCookie(String userTicket, HttpServletRequest request, HttpServletResponse response);

}
